<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <input type="button" id = "btn" value="前后端分离"/>
    <script src="../js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript">
        $("#btn").click(function (){
            $.ajax({
                type:"GET",
                url : "http://127.0.0.1:8080/backend/hello",
                success:function (msg){
                    alert(msg);
                }
            });
        });

    </script>
</body>
</html>